package com.benmei.weike.dto;

/**
 * Created by Peter on 2018/5/2.
 */
public class ApplePayResponse {
    private Integer code;//1 success; 2 收据验证超时; 3 收据验证错误
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        if (code == 0) {
            message = "支付验证成功";
        } else {
            message = "支付验证失败";
        }
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
